package com.wugh.fast.kernel.validator.exception;

import com.wugh.fast.kernel.core.enums.EnumInterface;
import com.wugh.fast.kernel.core.enums.FastExceptionEnum;
import com.wugh.fast.kernel.core.exception.FastAbstractException;

/**
 * 说明: 校验异常
 * <pre>
 *      通过{@link com.wugh.fast.kernel.validator.ValidatorUtils}工具校验失败返回的异常
 * </pre>
 *
 * @author wugh
 * @date 2019-01-24 14:53
 */
public class FastValidationException extends FastAbstractException {
    public FastValidationException() {
    }

    public FastValidationException(String message) {
        super(message);
    }

    public FastValidationException(String message, Throwable cause) {
        super(message, cause);
    }

    public FastValidationException(Throwable cause) {
        super(cause);
    }

    public FastValidationException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    @Override
    public EnumInterface<Integer> getExceptionEnum() {
        return FastExceptionEnum.PARAMETER_EXCEPTION;
    }

}
